package net.lab1024.sa.admin.module.business.supercomputer.selecttablename.service;

import net.lab1024.sa.admin.module.business.supercomputer.selectfilds.dao.selectdb.SelectFieldsInSelectDBDao;

import net.lab1024.sa.base.common.domain.ResponseDTO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SelectTableService {

    @Resource
    private SelectFieldsInSelectDBDao selectFieldsInSelectDBDao;

    public ResponseDTO<List<String>> selectAllTableNames(Integer sourceId) throws Exception {
        return ResponseDTO.ok(selectFieldsInSelectDBDao.selectAllTable(sourceId));
    }

}
